<template>
  <h2>我是about</h2>
</template>

<script>
import emitter from './envetBus'
import { WHY_MITT, ZL_MITT } from './constans'
export default {
    data() {

    },
    created() {
        emitter.on(WHY_MITT, (info) => {
            console.log(info)
        }),
        emitter.on(ZL_MITT, (info) => {
            console.log(info)
        }),
        emitter.on('*', (type, info) => {
            if (type === 'zl') {
                console.log('listener',type, info)
            }
        })
    }
}
</script>

<style>

</style>